#include "GlobalHeader.h"


// char *argv[] = {"test", NULL};
char *env[] = {"userName=zhangsan", "passwd=123456",NULL};

int main()
{
    execl("/usr/bin/ls","-a","-l",NULL);

    char * argv[] = {"ls","-a","-l",NULL};
    execv("/usr/bin/ls",argv);

    execlp("ls","-a","-l",NULL);

    char * argv[] = {"ls","-a","-l",NULL};
    execvp("ls",argv);


    execve("./test", argv, env);

    execle("./test", "test", NULL, env);
    return 0;
}